2 L = LEN(X$): FOR I = 1 TO L: POKE 511 +I, ASC( MID$ (X$,I,1)) +128: NEXT : POKE 72,0: CALL -144
3 X$ = "340:CE 39 03 CE 3C 03 CA D0 EE A5 68 85 1A A4 67 84 19 A0 01 B1 19 F0 10 18 65 08 91 19 AA 88 B1 19 85 19 86 1A C8 D0 EC 4C 66 D5 N 300G": GOTO 2
10 REM HOME COMPUTER INVENTORY
20 GOSUB 1320: GOSUB 3030: HOME : INVERSE : LIST 63999 -: NORMAL
30 FOR X = 1 TO 22 STEP 21: VTAB X: HTAB 5: PRINT "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%": NEXT : VTAB 2
40 FOR X = 0 TO 20: PRINT " %%%%%%%";: HTAB 33: PRINT "%%%%%%%": NEXT
50 POKE -16299,0: GOTO 1970
60 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-J><CTRL-J>CENTERING SUBROUTINE
70 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>--------- ----------<CTRL-J><CTRL-J>
80 HTAB 21 - LEN(A$)/2
90 PRINT A$: RETURN
92 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-J><CTRL-J>INPUT NEW ITEM
93 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>----- --- ----<CTRL-J><CTRL-J>
120 HOME : PRINT "--------HOME COMPUTER INVENTORY---------
130 VTAB 3: HTAB 7: PRINT "ENTER DATA AND PRESS ";: INVERSE : PRINT "RETURN": NORMAL : PRINT " DO NOT EXCEED THE SPECIFIED LENGTH ";
140 PRINT DASH$
150 VTAB 22: PRINT DASH$;" PRESSING ";: INVERSE : PRINT "RETURN";: NORMAL : PRINT " WITH NO RESPONSE INDI-": PRINT "CATES THAT INFORMATION IS NOT AVAILABLE";
160 POKE 2039,174: REM PERIOD
170 FOR X = 5 TO 22 STEP 17: VTAB X: HTAB 1: PRINT "+";: HTAB 40: PRINT "+": NEXT
180 FOR X = 6 TO 21: VTAB X: HTAB 1: PRINT "!";: HTAB 40: PRINT "!": NEXT
190 FOR X = 0 TO 6:I$(X) = "": NEXT
200 VTAB 6
210 POKE 34,5: POKE 35,21: POKE 33,38: POKE 32,1: REM SET TEXT WINDOW
490 TEXT : FOR X = 1 TO 40: POKE 33,X: HOME : NEXT
500 FLASH : VTAB 12: HTAB 16: PRINT "[WRITING]
510 CALL BP: NORMAL : PRINT
520 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-J><CTRL-J>ADD ITEM TO FILE
530 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>--- ---- -- ----<CTRL-J><CTRL-J>
540 PRINT D$"OPEN"FI$",L130
550 PRINT D$"READ"FI$",R0
560 INPUT REC:REC = REC +1
570 PRINT D$"WRITE"FI$",R0
580 PRINT REC
590 PRINT D$"WRITE"FI$",R"REC
600 FOR X = 0 TO 6: PRINT I$(X): NEXT
610 PRINT D$"CLOSE
620 RETURN
630 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-J><CTRL-J>READ FROM FILE
640 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>---- ---- ----<CTRL-J><CTRL-J>
650 HOME :A$ = "....HOME COMPUTER INVENTORY....": GOSUB 60
660 VTAB 10: PRINT "OPTIONS": PRINT "-------": PRINT : PRINT "<1> VIEW A SPECIFIC ITEM": PRINT "<2> LIST ENTIRE FILE TO PRINTER": PRINT "<3> RETURN TO MAIN MENU
670 PRINT : PRINT "ENTER YOUR CHOICE <1-3>:"U$;: POKE -16300,0: HTAB 25: INPUT "";X$:X = VAL(X$): IF X <1 OR X >3 THEN 670
1030 VTAB 23: HTAB 6: PRINT "....PRESS ";: FLASH : PRINT "RETURN";: NORMAL : PRINT " FOR MENU....
1040 POKE CB,0: WAIT KB,128: IF PEEK(KB) < >RTN THEN 1040
1050 POKE CB,0: GOSUB 3030: RETURN
1060 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-J><CTRL-J>LIST ALL ITEMS TO PRINTER
1070 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>---- --- ----- -- -------<CTRL-J><CTRL-J>
1320 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-J><CTRL-J>INITIALIZATION
1330 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>--------------<CTRL-J><CTRL-J>
1340 NOTRACE : SPEED= 255
1350 D$ = CHR$(4): REM CTRL-D
1360 VTAB 23: PRINT D$"NOMONCIO
1370 U$ = CHR$(95): REM SCORE
1380 CB = -16368: REM CLR KBD
1390 KB = -16384: REM READ KBD
1400 SLOT = 1: REM PRINTER SLOT#
1410 RTN = 141:ESC = 155
1420 BP = -198: REM ANNOYING
1430 DATA HARDWARE,SOFTWARE,ACCESSORY,LITERATURE,MISCELLANEOUS
1930 PRINT : PRINT "ENTER NEW SLOT NUMBER <1-6>:"U$;: HTAB 29: INPUT "";SLOT$:SLOT = VAL(SLOT$): IF SLOT <1 OR SLOT >6 THEN 1930
1940 GOSUB 3030: RETURN
1950 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-J><CTRL-J>VERIFY/CREATE HCI.DATAFILE
1960 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>------------- ------------<CTRL-J><CTRL-J>
1970 POKE 216,0: ONERR GOTO 2000
1980 PRINT D$"VERIFY"FI$
1990 POKE 216,0: GOTO 1550
2000 IF PEEK(222) < >6 THEN CALL -211: STOP : REM NO ERROR OTHER THAN A "FILE NOTFOUND" ERROR SHOULD OCCUR!
2010 REM
2020 REM FILE IS NOT ON THIS
2030 REM DISK, SO CREATE IT:
2040 REM
2050 PRINT D$"OPEN"FI$",L130
2060 PRINT D$"WRITE"FI$",R0
2070 PRINT 0
2080 PRINT D$"CLOSE
2090 POKE 216,0: GOTO 1550
2100 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-J><CTRL-J>INSTRUCTIONS
2110 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>------------<CTRL-J><CTRL-J>
2120 HOME :A$ = ".....INSTRUCTIONS.....": GOSUB 60: PRINT DASH$
2130 POKE 34,3
2140 PRINT " THE PURPOSE OF THIS PROGRAM IS TO": PRINT
2150 PRINT "ALLOW YOU TO KEEP A RECORD OF ALL OF": PRINT
2160 PRINT "YOUR COMPUTER EQUIPMENT. THE DATA IS": PRINT
2170 PRINT "STORED IN A TEXT FILE, AND YOU HAVE THE": PRINT
2180 PRINT "OPTION OF EITHER PRINTING OUT THE ENTIRE
2190 PRINT "CONTENTS OF THE FILE ON YOUR PRINTER, OR
2200 PRINT "VIEWING THE DATA OF AN INDIVIDUAL ITEM": PRINT
2210 PRINT "ON THE MONITOR.
2220 GOSUB 2420
2230 PRINT " WHEN ENTERING THE DATA, DO NOT GO": PRINT
2240 PRINT "BEYOND THE UNDERLINES. THEY ARE THERE TO
2250 PRINT "SHOW YOU THE MAXIMUM LENGTH OF EACH IN- "
2260 PRINT "PUT. UNDER 'DESCR' ENTER THE NAME AND": PRINT
2270 PRINT "MANUFACTURER OF AN ITEM, UNDER 'DATE'": PRINT
2280 PRINT "ENTER THE DATE OF PURCHASE IN THE FORM": PRINT
2290 PRINT "MM/DD/YY, AND UNDER 'ID' ENTER ANY": PRINT
2300 PRINT "IDENTIFICATION OR SPECIFICATIONS.
2330 GOSUB 2420
2340 PRINT " AFTER YOU HAVE ENTERED DATA FOR ALL": PRINT
2350 PRINT "OF YOUR ITEMS, MAKE A PRINTOUT AND STORE
2360 PRINT "IT IN A SAFE PLACE (E.G. YOUR OFFICE, A "
2370 PRINT "FIREPROOF SAFE, ETC). ALSO, WHY NOT TAKE
2380 PRINT "SOME PICTURES OF YOUR SYSTEM AND STORE": PRINT
2390 PRINT "THEM AS WELL. YOUR APPLE WON'T MIND; IT": PRINT
2400 PRINT "IS EXTREMELY PHOTOGENIC!
2410 GOSUB 2420: POKE 34,0: RETURN
2420 VTAB 23: PRINT DASH$;
2430 PRINT " PRESS ";: FLASH : PRINT "RETURN";: NORMAL : PRINT " TO CONTINUE, ";: INVERSE : PRINT "ESC";: NORMAL : PRINT " TO EXIT";
2440 GOSUB 3030
2450 POKE CB,0: WAIT KB,128: IF PEEK(KB) < >RTN AND PEEK(KB) < >ESC THEN 2450
2460 IF PEEK(KB) = ESC THEN POKE CB,0: POKE 34,0: POP : RETURN
2470 POKE CB,0: POKE 35,22: HOME : POKE 35,24: RETURN
2480 TEXT : HOME : TEXT : END
2490 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-J><CTRL-J>ERROR TRAP
2500 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>----- ----<CTRL-J><CTRL-J>
2510 ER = PEEK(222): IF ER = 255 THEN NORMAL : VTAB 1: PRINT : PRINT D$"CLOSE": GOSUB 3030: POKE 32,0: POKE 33,40: POKE 34,0: POKE 35,24: GOTO 1590
2520 IF ER < >9 AND ER < >5 AND ER < >10 AND ER < >8 AND ER < >4 THEN CALL -211: PRINT " NUMBER "ER" IN LINE " PEEK(218) + PEEK(219) *256: STOP
2530 TEXT : HOME
2540 PRINT D$"CLOSE
2550 IF ER = 5 THEN PRINT D$"DELETE"FI$
2560 IF ER = 5 THEN PRINT "LEAVE THE ORIGINAL DISK IN THE DRIVE.
2570 IF ER = 8 THEN PRINT "INPUT/OUTPUT ERROR...MAKE SURE DRIVE DOOR IS CLOSED PROPERLY.
2580 IF ER = 10 THEN PRINT "HCI.DATAFILE MUST BE LEFT UNLOCKED.
2590 IF ER = 4 THEN PRINT "WRITE-PROTECT TAB MUST BE REMOVED.